//
//  FNBannerCollectionViewCell2.swift
//  FNBanner
//
//  Created by Fnoz on 2016/10/25.
//  Copyright © 2016年 Fnoz. All rights reserved.
//

import Kingfisher

class FNBannerCollectionViewCell2: FNBannerCollectionViewBaseCell {

    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView.addSubview(bannerImageView)
        bannerImageView.contentMode = .scaleAspectFill
        bannerImageView.layer.masksToBounds = true
        bannerImageView.layer.cornerRadius = 7
        bannerImageView.snp.makeConstraints { (make) in
            make.width.equalTo(contentView)
            make.height.equalTo(contentView)
            make.center.equalTo(contentView)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
